import java.io.Serializable;
import java.util.HashMap;

/**
 * Everything sent out through UDP port is an instance of this class. First
 * field indicates its type, second field carries the data.
 * 
 * @author Jiabin
 * 
 */
public class Packet implements Serializable
{
    public enum PacketType
    {
        DVec, Data, Verify, VerifyACK, Error
    }

    PacketType type;
    Object data;

    public Packet(PacketType type, Object data)
    {
        this.type = type;
        this.data = data;
    }
}
